import { defineStore } from 'pinia';

export const processInfo =  defineStore('processInfo',{
    state:()=>({
        procInfo:{
            id:'',
            key:'',
            name:'',
            sortId:'',
            proc_type:true,
            titleModel:'',
            formId:'',
            form_url:'',
            form_type:'',
            deployState:undefined,
            startPower:'0',
            powerData:[],
            timeoutData:'',
            picture:'',
        },
        procVariable:[]
    }),
    actions:{
        setStateData(key,value){
            this.procInfo[key]=value;
        },
        setVariable(params){
            this.procVariable.push(params);
        },
    }
});